package com.binhthuan.catechist.client;

import com.google.gwt.i18n.client.Messages;

/**
 * @author Giang Đinh - Lớp này chứa tất cả các thông báo được hiển thị cho người
 *         dùng.
 */
public interface ECMessages extends Messages {
    
    @DefaultMessage("Cannot contact to server.")
    String cannotContactToServer();

    @DefaultMessage("Contacting to server...")
    String contactingToServer();

    @DefaultMessage("Loading data...")
    String loadingData();

    @DefaultMessage("Saving...")
    String savingData();

    @DefaultMessage("Updating...")
    String updatingData();

    @DefaultMessage("Removing...")
    String removingData();
    
    @DefaultMessage("Server is busy.<br>Please try later.")
    String errorFromServer();

    @DefaultMessage("Operation timeout")
    String operationTimeout();

    @DefaultMessage("Missing username")
    String missingUsername();
    
    @DefaultMessage("Missing password")
    String missingPassword();
    
    @DefaultMessage("Username is invalid, only alphanumeric characters and underscore are accepted")
    String invalidUsername();
    
    @DefaultMessage("Your username and password are not correct. Please contact the administrator for assistance.")
    String usernameAndPasswordAreNotCorrect();
    
    @DefaultMessage("Go to home page")
    String goToHomePage();

    @DefaultMessage("About authors")
    String aboutAuthor();
    
    @DefaultMessage("Sign out")
    String signOut();

    @DefaultMessage("Please select an item to delete !")
    String requireSelectionToDeleteMessage();

    @DefaultMessage("Do you want to delete the selected items ?")
    String deleteConfirmationMessage();

    @DefaultMessage("Delete items successfully !")
    String deleteSuccessMessage();

    @DefaultMessage("Delete items failure !")
    String deleteFailureMessage();

    @DefaultMessage("{0} results")
    String numberOfResult(int number);

    @DefaultMessage("Add {0}")
    String addItem(String itemType);

    @DefaultMessage("Add {0} successfully")
    String addSuccess(String item);

    @DefaultMessage("Add {0} failure")
    String addFailure(String item);

    @DefaultMessage("Update {0} successfully")
    String updateSuccess(String item);
    
    @DefaultMessage("Update {0} failure")
    String updateFailure(String item);

    @DefaultMessage("Delete {0}")
    String deleteItem(String itemType);

    @DefaultMessage("Delete {0} successfully")
    String deleteSuccess(String item);

    @DefaultMessage("Delete {0} failure")
    String deleteFailure(String item);

    @DefaultMessage("Limit {0} characters")
    String maximunNumberCharacters(int number);

    @DefaultMessage("From {0} to {1}")
    String limitDateRange(String startDate, String endDate);

    @DefaultMessage("Start date must before end date !")
    String invalidDateRange();

    @DefaultMessage("Start time must before end time !")
    String invalidTimeRange();

    @DefaultMessage("The school year is being used, so it cannot be deleted.")
    String schoolYearIsInUsed();

    @DefaultMessage("The shift is being used, so it cannot be deleted.")
    String shiftIsInUsed();

    @DefaultMessage("The shift is exist, please try another name.")
    String shiftIsDuplicated();

    @DefaultMessage("The school date is exist, please try another date.")
    String schoolDateIsDuplicated();
    
    @DefaultMessage("The date is out of opening date and closing date of school year.")
    String outOfSchoolYearRange();

    @DefaultMessage("Show print preview")
    String showPrintPreview();

    @DefaultMessage("No item to display")
    String noItemToDisplay();

    @DefaultMessage("Area name is duplicated, please try another name")
    String areaIsDuplicated();

    @DefaultMessage("Duplicated name")
    String duplicatedName();

    @DefaultMessage("{0} is in used")
    String itemIsInUsed(String type);

    @DefaultMessage("{0} is not found")
    String itemNotFound(String type);

    @DefaultMessage("Show help content")
    String showHelpContent();

    @DefaultMessage("Update {0}")
    String updateItem(String item);

    @DefaultMessage("Duplicated code")
    String duplicateCode();
}
